package com.ruoyi.life.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 日记对象 life_diary
 *
 * @author ruoyi
 * @date 2025-05-28
 */
public class LifeDiary extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 时间周期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间周期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /**
     * 日记
     */
    @Excel(name = "日记")
    private String diary;

    /**
     * 随笔
     */
    @Excel(name = "随笔")
    private String perception;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getDate() {
        return date;
    }

    public void setDiary(String diary) {
        this.diary = diary;
    }

    public String getDiary() {
        return diary;
    }

    public void setPerception(String perception) {
        this.perception = perception;
    }

    public String getPerception() {
        return perception;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("date", getDate())
                .append("diary", getDiary())
                .append("perception", getPerception())
                .append("remark", getRemark())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .toString();
    }
}
